/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [{
  path: '/',
  component: () => import('@/views/layouts/index'),
  redirect: '/home',
  meta: {
    title: '首页',
    keepAlive: false
  },
  children: [{
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home/index'),
    meta: {
      title: '首页',
      keepAlive: false,
      tabBar: true,  //是否显示底部标签栏 true 显示 false不显示
      navBar: false //是否显示顶部导航栏 true 显示 false不显示
      //requireAuth:true //是否需要登录才能进
    }
  },
    {
      path: '/register',
      name: 'Register',
      component: () => import('@/views/home/register'),
      meta: {
        title: '注册',
        keepAlive: false,
        tabBar: false,
        navBar: false
      }
    },{
      path:'/forget',
      name:'Forget',
      component: () => import('@/views/home/forget'),
      meta:{
        title:'忘记密码',
        keepAlive:false,
        tabBar:true,
        navBar:true
      }
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('@/views/home/login'),
      meta: {
        title: '登录',
        keepAlive: false,
        tabBar: false,
        navBar: false
      }
    },{
      path:'editPasswd',
      name:'EditPasswd',
      component: () => import('@/views/user/editPasswd'),
      meta: {
        title: '修改密码',
        keepAlive: false,
        tabBar: false,
        navBar: true
      }
    },
    {
      path: '/productDetails',
      name: 'ProductDetails',
      component: () => import('@/views/productDetails/productDetails'),
      meta: {
        title: '商品详情',
        keepAlive: false,
        tabBar: false,
        navBar: true
      }
    },
    {
      path: '/share',
      name: 'Share',
      component: () => import('@/views/productDetails/share.vue'),
      meta: {
        title: '分享',
        keepAlive: false,
        tabBar: false,
        navBar: true
      }

    },
    {
      path: '/cart',
      name: 'Cart',
      component: () => import('@/views/cart/cart'),
      meta: {
        title: '购物车',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true

      }
    },
    {
      path: '/creationOrder',
      name: 'CreationOrder',
      component: () => import('@/views/order/creationOrder'),
      meta: {
        title: '创建订单',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/order',
      name: 'Order',
      component: () => import('@/views/order/order'),
      meta: {
        title: '订单详情',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/orderType',
      name: 'OrderType',
      component: () => import('@/views/order/orderType'),
      meta: {
        title: '订单',
        keepAlive: false,
        tabBar: true,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/orderReview',
      name: 'OrderReview',
      component: () => import('@/views/order/orderReview'),
      meta: {
        title: '订单评论',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/contactList',
      name: 'ContactList',
      component: () => import('@/views/contactList/contactList'),
      meta: {
        title: '联系人列表',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/newContact',
      name: 'NewContact',
      component: () => import('@/views/contactList/newContact'),
      meta: {
        title: '联系人',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/productClassify',
      name: 'ProductClassify',
      component: () => import('@/views/classify/productClassify'),
      meta: {
        title: '商品分类',
        keepAlive: false,
        tabBar: true,
        navBar: true
      }
    },
    {
      path: '/paySuccess',
      name: 'PaySuccess',
      component: () => import('@/views/order/paySuccess'),
      meta: {
        title: '支付成功',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/userIndex',
      name: 'User',
      component: () => import('@/views/user/index'),
      meta: {
        title: '',
        keepAlive: false,
        tabBar: true,
        navBar: false,
        requireAuth: true
      }
    },
    {
      path: '/coupon',
      name: 'Coupon',
      component: () => import('@/views/coupon/coupon'),
      meta: {
        title: '优惠券',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path:'/editUser',
      name:'EditUser',
      component:()=>import('@/views/user/editUser'),
      meta:{
        title:'编辑用户信息',
        keepAlive:false,
        tabBar:false,

        navBar:true,
        requireAuth:true  
      }
    },
    {
      path: '/integralProduct',
      name: 'IntegralProduct',
      component: () => import('@/views/intergral/integralProduct'),
      meta: {
        title: '积分商品',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: false
      }
    },
    {
      path: '/integral',
      name: 'Integral',
      component: () => import('@/views/intergral/integral.vue'),
      meta: {
        title: '签到',
        keepAlive: false,
        tabBar: true,
        navBar: true,
        requireAuth: false
      }
    },
    {
      path: '/combiantion',
      name: 'Combiantion',
      component: () => import('@/views/combination/combination.vue'),
      meta: {
        title: '拼团',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/productList',
      name: 'ProductList',
      component: () => import('@/views/productList/productList'),
      meta: {
        title: '商品列表',
        keepAlive: false,
        tabBar: true,
        navBar: true
      }
    },
    {
      path: '/commission',
      name: 'Commission',
      component: () => import('@/views/commission/commission.vue'),
      meta: {
        keepAlive: false,
        title: '分销中心',
        tabBar: true,
        navBar: false
      }
    },
    {
      path: '/getComm',
      name: 'GetComm',
      component: () => import('@/views/commission/getComm.vue'),
      meta: {
        keepAlive: false,
        title: '推广数据',
        tabBar: true,
        navBar: true
      }
    },
    {
      path: '/integralList',
      name: 'IntegralList',
      component: () => import('@/views/commission/integralList.vue'),
      meta: {
        keepAlive: false,
        title: '积分记录',
        tabBar: true,
        navBar: true
      }
    },
    {
      path: '/spreadBanner',
      name: 'SpreadBanner',
      component: () => import('@/views/commission/spreadBanner.vue'),
      meta: {
        keepAlive: false,
        title: '二维码生成',
        tabBar: true,
        navBar: true
      }
    },
    {
      path: '/spreadComm',
      name: 'SpreadComm',
      component: () => import('@/views/commission/spreadComm.vue'),
      meta: {
        keepAlive: false,
        title: '推广佣金明细',
        tabBar: true,
        navBar: true
      }
    },
    {
      path:'/extrack',
      name: 'Extrack',
      component:()=>import('@/views/commission/extrack'),
      meta:{
        keepAlive: false,
        title: '提现中心',
        tabBar: true,
        navBar: true
      }
    },
    {
      path: '/collect',
      name: 'Collect',
      component: () => import('@/views/collect/collect'),
      meta: {//我的收藏或者足迹
        title: '我的收藏',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true //是否需要登录才能进
      }
    },
    {
      path: '/seckill',
      name: 'Seckill',
      component: () => import('@/views/seckill/seckill.vue'),
      meta: {
        title: '秒杀',
        keepAlive: true,
        tabBar: true,
        navBar: false,
        requireAuth: true
      }
    },
    {
      path:'/bargain',
      name:'Bargain',
      component:() => import('@/views/bargain/bargain.vue'),
      meta:{
        title:'砍价',
        keepAlive: true,
        tabBar: true,
        navBar: false,
        requireAuth:true
      }
    },
    {
      path:'/bargainHistory',
      name:'BargainHistory',
      component:() => import('@/views/bargain/bargainHistory.vue'),
      meta:{
        title:'我的砍价',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth:true
      }
    },
    ,{
      path:'bargainDetail',
      name:'BargainDetail',
      component:() => import('@/views/bargain/bargainDetail.vue'),
      meta:{
        title:'砍价详情',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth:true
      }
    },
    {
      path:'/bargainHelp',
      name:'BargainHelp',
      component:() => import('@/views/bargain/bargainHelp.vue'),
      meta:{
        title:'帮砍',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth:true
      }
    },
    {
      path: '/rpwd',
      name: 'Rpwd',
      component: () => import('@/views/user/rpwd'),
      meta: {
        title: '修改密码',
        keepAlive: false,
        tabBar: true,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/level',
      name: 'Level',
      component: () => import('@/views/user/level.vue'),
      meta: {
        title: '会员中心',
        keepAlive: false,
        tabBar: true,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/couponList',
      name: 'CouponList',
      component: () => import('@/views/user/couponList.vue'),
      meta: {
        title: '我拥有的优惠券',
        keepAlive: false,
        tabBar: true,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path:'/reviewDetail',
      name:'ReviewDetail',
      component:()=>import('@/views/productDetails/reviewDetail'),
      meta:{
        title: '用户评论',
        keepAlive: false,
        tabBar: false,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/wallet',
      name: 'Wallet',
      component: () => import('@/views/user/wallet'),
      meta: {
        title: '我的钱包',
        keepAlive: false,
        tabBar: true,
        navBar: true,
        requireAuth: true
      }
    },
    {
      path: '/search',
      name: 'Search',
      component: () => import('@/views/home/search'),
      meta: {
        title: '搜索',
        keepAlive: false,
        tabBar: true,
        navBar: false
      }
    },
    {
      path:"/test",
      name:'test',
      component:() =>import('@/views/test.vue'),
      meta:{
        title:'test',
        keepAlive:false,
        tabBar:false,
        navBar:false
      }
    },
    {
      path: '/nullPage',
      name: 'NullPage',
      component: () => import('@/views/home/nullPage'),
      meta: {
        title: '404',
        keepAlive: false,
        tabBar: true,
        navBar: false,
        requireAuth: false
      }
    }

  ]
}]
